package com.example.demo.demo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * TODO
 *
 * @author My
 * @date 2020/12/19 13:45
 */
@Entity
@Table(name = "student")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Student implements Serializable {

    @ApiModelProperty(value = "学号", example = "201215125")
    @Id
    @Column(name = "sno")
    private String sNo;

    @ApiModelProperty(value = "姓名", example = "张立")
    @Column(name = "sname")
    private String sName;

    @ApiModelProperty(value = "性别", example = "男")
    @Column(name = "ssex")
    private String sSex;

    @ApiModelProperty(value = "年龄", example = "19")
    @Column(name = "sage")
    private Integer sAge;

    @ApiModelProperty(value = "系", example = "IS")
    @Column(name = "sdept")
    private String sDept;

}
